package com.rongxue.mapper;

import com.rongxue.pojo.SUserAccount;
import com.rongxue.pojo.SUserAccountExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SUserAccountMapper {
    int countByExample(SUserAccountExample example);

    int deleteByExample(SUserAccountExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SUserAccount record);

    int insertSelective(SUserAccount record);

    List<SUserAccount> selectByExample(SUserAccountExample example);

    SUserAccount selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SUserAccount record, @Param("example") SUserAccountExample example);

    int updateByExample(@Param("record") SUserAccount record, @Param("example") SUserAccountExample example);

    int updateByPrimaryKeySelective(SUserAccount record);

    int updateByPrimaryKey(SUserAccount record);

    SUserAccount selectUserAccountByUserId(Long userId);

    SUserAccount selectUserAccountByUid (Long userId);

    //更新银行账户信息
    int updateUserAccountById(SUserAccount record);

    //根据用户的id更改用户的账户
    int updateUserAccountByUserId(SUserAccount record);

    //添加用户的金额
    int updateUserAccountUpByUserId(SUserAccount record);

    SUserAccount selectAccountAbleWaitInterestByUserId(Long id);
    //初始化用户资金表
    void inserUserAccountInit(Long userId);
}